using NodeCanvas.Variables;

namespace NodeCanvas.Conditions
{
	[Category("✫ Blackboard")]
	[Description("Check if a game object is contained in the target list")]
	public class ListContainsObject : ConditionTask
	{
		[RequiredField]
		[BlackboardOnly]
		public BBGameObjectList targetList;

		public BBGameObject ckeckGameObject;

		protected override string info
		{
			get
			{
				return string.Concat(targetList, " contains ", ckeckGameObject);
			}
		}

		protected override bool OnCheck()
		{
			return targetList.value.Contains(ckeckGameObject.value);
		}
	}
}
